<?php
namespace app\admin\controller;
use x\Xbase;
class Test extends Xbase{

    //事务使用示例
    public function Init(){
        $this->db->begin();
        $mysql = [];
        $id =  $mysql[] = $this->db->insert('log_test',['uuid'=>'333333333']);
        $uid = $mysql[] = $this->db->update('log_test',['uuid'=>44],['id=?',[1]]);
        $mysql[] = 1;
        $rs = $this->db->end($mysql);
    }
}
